from django.db import models

class citystate(models.Model):
    name=models.CharField(max_length=255,null=False)
    full_name=models.CharField(max_length=255,null=False)
    def __str__(self):
        return self.name
		
class zipcode(models.Model):
    zip= models.CharField(max_length=10,null=False,default='')
    state= models.CharField(max_length=2,null=False,default='')
    latitude = models.CharField(max_length=10,null=False,default='')
    longitude = models.CharField(max_length=10,null=False,default='')
    city = models.CharField(max_length=50, null=True,blank=True)
    full_state = models.CharField(max_length=50, null=True,blank=True) 
    def __str__(self):
        return self.state		
